@import './variables.scss';
@import './mixin.scss';
@import './transition.scss';
@import './element-ui.scss';
@import './sidebar.scss';
@import "font.css";
@import './news.scss';

body {
  height: 100%;
  -moz-osx-font-smoothing: grayscale;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  font-family: Helvetica Neue, Helvetica, PingFang SC, Hiragino Sans GB, Microsoft YaHei, Arial, sans-serif;
  font-size: 14px;
  color: #333;
  background: #F5F6F9;
}

ol, ul,p,dl {
  list-style: none;
  padding: 0;
  margin: 0;
}

label {
  font-weight: 700;
}

html {
  height: 100%;
  box-sizing: border-box;
}

#app {
  height: 100%;
}

*,
*:before,
*:after {
  box-sizing: inherit;
}

a:focus,
a:active {
  outline: none;
}

a,
a:focus,
a:hover {
  cursor: pointer;
  color: inherit;
  text-decoration: none;
}

div:focus {
  outline: none;
}

.clearfix {
  &:after {
    visibility: hidden;
    display: block;
    font-size: 0;
    content: " ";
    clear: both;
    height: 0;
  }
}

// main-container global css
.app-container {
  padding: 20px;
}

//公共样式
.text_overflow1 {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.text_overflow2 {
  text-overflow: ellipsis; /* IE 6, WebKit (Safari, Chrome), Firefox 7, Opera 11 */
  -o-text-overflow: ellipsis; /* Opera 9-10 */
  word-break: break-all; /*允许在单词内换行，更美观*/
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.text_overflow3 {
  text-overflow: ellipsis; /* IE 6, WebKit (Safari, Chrome), Firefox 7, Opera 11 */
  -o-text-overflow: ellipsis; /* Opera 9-10 */
  word-break: break-all; /*允许在单词内换行，更美观*/
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
}

.el-cascader-menu__wrap{
  height: 204px !important;
}

//盒子布局
.flex {
  display: flex;
  align-items: center;
}

.flexs {
  display: flex
}

.flex1 {
  flex: 1
}

.flex_start {
  display: flex;
  align-items: flex-start;
}

.flexs_center {
  align-items: center;
}

.flex_line {
  display: flex;
  align-items: baseline !important;
}

.flex_between {
  justify-content: space-between;
}

.flex_center {
  justify-content: center;
}

.flex_column {
  flex-direction: column;
}

.flex_end {
  justify-content: flex-end
}

.flex_wrap {
  flex-wrap: wrap;
}

.flex_between {
  justify-content: space-between;
}

.flex_around {
  justify-content: space-around;
}

.flex_center {
  justify-content: center;
}

.flex-column-center {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.flex-column-evenly {
  display: flex;
  flex-direction: column;
  justify-content: space-evenly;
}

.flex-column-full {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: stretch
}

.tc {
  text-align: center;
}

.fw {
  font-weight: bold
}

//end
//常用间距
.mr8 {
  margin-right: 8px
}

.mr5 {
  margin-right: 5px
}
.mr10 {
  margin-right: 10px
}
.mr15 {
  margin-right: 16px
}

.ml5 {
  margin-left: 5px
}

.ml10 {
  margin-left: 10px
}

.ml15 {
  margin-left: 16px
}

.mb5 {
  margin-bottom: 5px
}

.mb15 {
  margin-bottom: 16px
}

.mt5 {
  margin-top: 5px
}
.mt10 {
  margin-top: 10px
}
.mt3 {
  margin-top:3px
}
.mt8 {
  margin-top: 8px
}
.mt12 {
  margin-top: 12px
}
.mt15 {
  margin-top: 16px
}
.pt16{
  padding-top: 16px
}
.pl10 {
  padding-left: 10px
}
.pl16 {
  padding-left: 16px
}
.p16{
  padding: 16px;
}
.pr16{
  padding-right: 16px;
}

.mlr15 {
  margin: 16px;
}
//end
//常用字号
.f22{font-size: 22px}
.f16{font-size: 16px}
.f14{font-size: 14px}
.f12{font-size: 12px}
.f18{font-size: 18px}
//end
//常用主题色
.c_3F61F1 {
  color: #3F61F1;
}

.c_D2D5DA {
  color: #D2D5DA;
}
.c_333333{
  color: #333;
}
.c_54a55b{
  color: #54a55b;
}
.c_e15c45{
  color: #e15c45;
}
.c_35415c{
  color: #35415c;
}
.C_999aaa{
  color: #999aaa;
}
//end
//公用布局样式
.mainBox {
  background: #fff;
  height: 100%;
  border-radius: 4px;
  border: 1px solid rgba(230, 230, 230, 1);
}

.btnCon {
  width: 100%;
  border-bottom: 1px solid #eee;
  border-radius: 4px 4px 0 0;
  height: 64px;
  padding: 16px;
}

.search {
  .el-input-group__append, .el-input-group__prepend {
    cursor: pointer;
    background-color: #3F61F1;
    border: 1px solid #3F61F1;
    color: #fff;
  }
}
// .el-input-group__append, .el-input-group__prepend{
//   padding:0 10px;
// }
.seniorSearch {
  background: #F7F8FA;
  padding: 7px 17px;
  width: 100%;
  border: 1px #ebeef5 solid;
  margin-bottom: -1px;

  .el-radio-button__orig-radio:checked + .el-radio-button__inner {
    background-color: #3f61f1;
    border-color: #3f61f1;
  }

  .line {
    width: 1px;
    height: 16px;
    display: inline-block;
    background: #e6e6e6;
    margin: 0 16px;
  }

  .setting {
    height: 28px;
    position: relative;
  }
}
.oh{
  overflow: hidden;
}
.tableCon {
  flex: 1;
  width: 100%;
  display: flex;
  flex-direction: column;
}

//表格里面的操作弹框列表样式
.opBox {
  position: relative;
  height: 14px;
  line-height: 14px;
}

.el-popover.tableOp {
  padding: 0;
}
.opBox{
  text-align: center;
}
.operation {
  padding: 4px 0;
  display: flex;
  justify-content: center;
  &:not(.flex){
    flex-direction: column;
  }
  >div{
    flex: 1;
    >button{
      color: #606266;
    }
    &:hover{
      cursor: pointer;
    }
  }
  ul{
    display: block;
    li{
      line-height: 28px;
      padding: 0 16px;
      cursor: pointer;
      position: relative;
      &:hover {
        background-color: #3f61f1;
        color: #fff;
      }
      &:first-child{
        margin-top: 4px;
      }
      &:last-child{
        margin-bottom:9px;
        &:after{
          content: "";
          position: absolute;
          left: 0;
          right: 0;
          bottom:-4px;
          border-bottom: 1px solid #e6e6e6;
        }
      }
    }
    &:first-child{
      li{
        &:first-child{
          margin-top:0;
        }
      }
    }
    &:last-child{
      li{
        &:last-child{
          margin-bottom:0;
          &:after{
            display: none;
          }
        }
      }
    }
  }
}

//所有自定义的下拉弹出框样式
.popBox {
  box-shadow: 0px 8px 16px 0px rgba(0, 0, 0, 0.1);
  border: 1px solid rgba(238, 238, 238, 1);
  background: #fff;
  position: absolute;
  width: 250px;
  top: 60px;
  right: 17px;
  z-index: 99;

  .popTitle {
    border-bottom: 1px solid rgba(238, 238, 238, 1);
    padding: 10px 16px;
  }

  .taList {
    padding: 6px 0;
  }
}

.popBox::before {
  content: "";
  width: 0;
  height: 0;
  border: 8px solid;
  position: absolute;
  top: -16px;
  right: 7px;
  border-color: transparent transparent #eee transparent;
}

.popBox::after {
  content: "";
  width: 0;
  height: 0;
  border: 7px solid;
  position: absolute;
  top: -14px;
  right: 8px;
  border-color: transparent transparent #fff transparent;
}

.tableHeadBox {
  padding: 5px 0;
  max-height: 450px;
  overflow-y: auto;

  &::-webkit-scrollbar {
    width: 8px;
    height: 8px;
  }

  &::-webkit-scrollbar-track {
    -webkit-box-shadow: inset 0 0 6px rgba(0, 0, 0, 0.2);
    border-radius: 10px;
  }

  &::-webkit-scrollbar-thumb {
    border-radius: 10px;
    background: rgba(0, 0, 0, 0.1);
    -webkit-box-shadow: inset 0 0 6px rgba(0, 0, 0, 0.4);
  }

  &::-webkit-scrollbar-thumb:window-inactive {
    background: rgba(255, 0, 0, 0.4);
  }
}

.paginaCon {
  width: 100%;
}
// 美化div滚动条
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

::-webkit-scrollbar-track {
  -webkit-box-shadow: inset 0 0 6px rgba(0, 0, 0, 0.2);
  border-radius: 10px;
}

::-webkit-scrollbar-thumb {
  border-radius: 10px;
  background: rgba(0, 0, 0, 0.1);
  -webkit-box-shadow: inset 0 0 6px rgba(0, 0, 0, 0.4);
}

::-webkit-scrollbar-thumb:window-inactive {
  background: rgba(127, 125, 125, 0.4);
}
//没有边框得select
.noBorderSelect {
  .el-input__inner {
    border-width: 0;
    background: transparent;
    padding-left: 5px;
  }
}

//tree间距
.departmentCon {
  .el-tree-node__content {
    height: 33px;
  }
}
//dialog公用参数覆盖
.comDialog {
  .el-dialog__header {
    padding: 10px 20px 10px;
    border-bottom: 1px solid #e6e6e6;
    position: relative;
    .el-dialog__title {
      font-size: 16px;
      font-weight: bold;
    }
    .el-dialog__headerbtn{
      top:50%;
      transform:translate(0,-50%);
    }
  }

  .el-dialog__footer {
    border-top: 1px solid #e6e6e6;
    padding-bottom: 10px;
  }

  .el-dialog__body {
    padding: 16px;
  }
}
//中间没有padding得dialog样式覆盖
.bodyNoPadDialog {
  .el-dialog__header {
    padding: 10px 20px 10px;
    border-bottom: 1px solid #e6e6e6;
    .el-dialog__title {
      font-size: 16px;
      font-weight: bold;
    }
  }

  .el-dialog__footer {
    border-top: 1px solid #e6e6e6;
    padding-bottom: 10px;
  }

  .el-dialog__body {
    padding:0;
  }
}

.pointer {
  cursor: pointer;
}

.inBlock {
  display: inline-block;
}

.relative {
  position: relative;
}

//表单公用样式
.el-input.is-disabled .el-input__inner{
  color: #303133;
}
.el-textarea.is-disabled .el-textarea__inner{
  color: #303133;
}
.dialogForm {
  .el-input-group{
    margin-top: 5px;
  }
  .el-form-item {
    margin-bottom: 0px;
  }

  .el-select {
    width: 100%;
  }
  .el-cascader {
    width: 100%;
  }
}
// 大弹框表单样式
.dialogInlineForm{
  .el-date-editor.el-input, .el-date-editor.el-input__inner{
    width: 100%;
  }
  .el-form-item__content{
    margin-right: 10px;
  }
  .el-textarea{
    vertical-align: middle;
  }
}
//选择人员按钮
.btnPer{
  height: 42px;
  .el-button--mini, .el-button--mini.is-round{
    padding: 6px 16px;
  }
}
.h100{
  height: 100%;
}
.w100{
  width: 100%;
}
.bigDialog.el-dialog{
  height: 70%;
}

.bigDialog78.el-dialog{
  height: 78%;
}

.bigDialogh85.el-dialog{
  height: 85%;
}
.expandBox{
  .el-table--border, .el-table--group{
    // border-bottom: none;
    border: 1px solid #EBEEF5;
  }
  .el-table__expanded-cell[class*=cell]{
    padding: 8px !important;
  }
  .dialogExpandTable{
    border: 1px solid #e6e6e6;
    .el-table th > .cell{
      border: none;
    }
    .el-table__body-wrapper  .el-table__row:last-child {
      td.el-table__cell{
        // border-bottom: none !important;
      }
    }
  }


}
// table
// 表格最后一行的td没有底部border
.lastTdNoBorder{
  .el-table__body-wrapper  .el-table__row:last-child {
    td.el-table__cell{
      // border-bottom: none !important;
    }
  }
  .el-table__fixed-body-wrapper .el-table__row:last-child {
    td.el-table__cell{
      // border-bottom: none !important;
    }
  }
}
// 选种表格行颜色
.selectd{
  td {background: #3f61f110}
}
// dialog 中间内容区域
.bigDialog{
  .dialogDody{
    height: 100%;
    display: flex;
    flex-flow: column;
    .addWuliaoBox{
      flex: 1;
      display: flex;
      flex-flow: column;
    }
  }
}
// dialog 中间内容区域
.bigDialog85{
  .dialogDody{
    height: 100%;
    display: flex;
    flex-flow: column;
    .addWuliaoBox{
      flex: 1;
      display: flex;
      flex-flow: column;
    }
  }
}
// 组合radio 帅选条件样式
.composeRadio{
  .combefore{
    .el-radio-button:last-child .el-radio-button__inner{
      border-radius: 0;
      border-right: none;
    }
  }
  .comafter{
    .el-radio-button:first-child .el-radio-button__inner{
      border-radius: 0;
    }
  }
}
// 表格行内颜色样式
.green{
  td {background: #54a55b10;}
}
.red{
  td {background: #e15c4510;}
}
.blue{
  td {background: #3f61f110;}
}

.el-tree-node__content {
  margin: 5px 0;
}

.el-input__inner {
  line-height: 1px !important;
}

.spot {
  width: 6px;
  height: 6px;
  display: inline-block;
  border-radius: 100%;
}
//
.el-button+.el-button{
  margin-left:6px;
}


/*在Chrome下移除input[number]的上下箭头*/
.no-number::-webkit-outer-spin-button,
.no-number::-webkit-inner-spin-button {
  margin: 0;
  -webkit-appearance: none !important;
}

.no-number input[type="number"]::-webkit-outer-spin-button,
.no-number input[type="number"]::-webkit-inner-spin-button {
  margin: 0;
  -webkit-appearance: none !important;
}

/*在firefox下移除input[number]的上下箭头*/
.no-number {
  -moz-appearance: textfield;
}

.no-number input[type="number"] {
  -moz-appearance: textfield;

}
